package com.atmilan.quartz.model.dto.buyer;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import lombok.Data;

/**
 * 【请填写功能名称】对象 t_product
 * 
 * @author muyu
 * @date 2020-09-01
 */
@Data
public class ProductDTO extends BaseDTO {

    private Integer isDelete;

    private String productCoverImage;
    private Long productTemplateId;
    private String productImgsUrl;
    private String customerType;
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品编码 */
    private String productCode;
    /** 商品名称中文 */
    private String productName;
    /** 商品分类id */
    private Long categoryId;
    private String categoryName;
    private String brandName;
    private BigDecimal minPrice;
    private String skuJson;
    /** 品牌id */
    private Long brandId;
    /** 商品详情 */
    private String productDetail;
    /** 审核是否通过(1通过 2未通过） */
    private Integer examineStatus;
    /** 是否上架(1上架 2下架) */
    private Integer onSaleStatus;
    /** 版本 */
    private String version;
    /** 英文名 */
    private String productEnName;
    /** 标签 */
    private String tag;
    /** 条形码 */
    private String barCode;
    //总库存
    private Integer totalStock;

    private String supplierName;
    private String deliverAddress;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("productCode", getProductCode()).append("productName", getProductName()).append("categoryId", getCategoryId()).append("brandId", getBrandId()).append("productDetail", getProductDetail()).append("examineStatus", getExamineStatus()).append("onSaleStatus", getOnSaleStatus()).append("remark", getRemark()).append("version", getVersion()).append("productEnName", getProductEnName()).append("tag", getTag()).append("barCode", getBarCode()).append("isDeleted", getIsDeleted()).append("createTime", getCreateTime()).append("editTime", getEditTime()).append("creator", getCreator()).append("editor", getEditor()).toString();
    }
}
